package lib;

import interfaces.World;

public class WorldFactory {
	
	/**
	 * Returns an instance of world of the dimension
	 * passed as a parameter, and if this world is a 2D world
	 * @param dimension Length of one dimension, it is square if two_dim is true
	 * @param two_dim Decide if the world is 2D world or 1D
	 * @return instance of world
	 */
	public static World getWorld(int dimension, boolean two_dim){
		return new WorldImpl(dimension,two_dim);
	}
}
